
var date = new Date();
var nowHour = date.getHours();
var nowMin =  date.getMinutes();
var tiemstamp = date.getTime();

var one = 24*60*60*1000;

var minChildren = [
    {
        label:'00分',
        value:'00',
    },
    {
        label:'30分',
        value:'30',
    }
]

var children = [
    {
        value: 0,
        label: '00点',
        children:minChildren
    },
    {
        value: 1,
        label: '01点',
        children:minChildren
    },
    {
        value: 2,
        label: '02点',
        children:minChildren
    },
    {
        value: 3,
        label: '03点',
        children:minChildren
    },
    {
        value: 4,
        label: '04点',
        children:minChildren
    },
    {
        value: 5,
        label: '05点',
        children:minChildren
    },
    {
        value: 6,
        label: '06点',
        children:minChildren
    },
    {
        value: 7,
        label: '07点',
        children:minChildren
    },
    {
        value: 8,
        label: '08点',
        children:minChildren
    },
    {
        value: 9,
        label: '09点',
        children:minChildren
    },
    {
        value: 10,
        label: '10点',
        children:minChildren
    },
    {
        value: 11,
        label: '11点',
        children:minChildren
    },
    {
        value: 12,
        label: '12点',
        children:minChildren
    },
    {
        value: 13,
        label: '13点',
        children:minChildren
    },
    {
        value: 14,
        label: '14点',
        children:minChildren
    },
    {
        value: 15,
        label: '15点',
        children:minChildren
    },
    {
        value: 16,
        label: '16点',
        children:minChildren
    },
    {
        value: 17,
        label: '17点',
        children:minChildren
    },
    {
        value: 18,
        label: '18点',
        children:minChildren
    },
    {
        value: 19,
        label: '19点',
        children:minChildren
    },
    {
        value: 20,
        label: '20点',
        children:minChildren
    },
    {
        value: 21,
        label: '21点',
        children:minChildren
    },
    {
        value: 22,
        label: '22点',
        children:minChildren
    },
    {
        value: 23,
        label: '23点',
        children:minChildren
    }
]

var today = [
    {
        label:'今天',
        value:'1',
        children
    },
    {
        label:'明天',
        value:'2',
        children
    }
]


today = [
    {
        label:'今天',
        value:tiemstamp,
        children
    },
    {
        label:'明天',
        value:tiemstamp*1 + one ,
        children
    },
	{
		label:'后天',
		value:tiemstamp*1 + one*2,
		children
	}
]

if(nowMin<30){
	today[0].children = today[0].children.slice(nowHour)
	today[0].children[0].children = today[0].children[0].children.slice(1)
}
if(nowMin>30){
	today[0].children = today[0].children.slice(nowHour+1)
}


export default {
	today
}